Next Previous Table of Contents

The LSwap Function

#include "lmisc.hxx"

LSwap

template<class T> inline void LSwap(T& a, T& b);

Swaps a and b so that, after the function is called, a is equal to the value of b before the function was called, and b is equal to the value of a before the function was called. Class T needs to have an operator for the assignment from instances of T overloaded.


Next Previous Table of Contents